package com.fourforfo.fourmall.coupon.dao;

import com.fourforfo.fourmall.coupon.entity.SeckillSkuRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 秒杀活动商品关联
 * 
 * @author fourforfo
 * @email fourforfo@gmail.com
 * @date 2022-06-16 12:38:34
 */
@Mapper
public interface SeckillSkuRelationDao extends BaseMapper<SeckillSkuRelationEntity> {

    /**
     * 根据sessionIds获取并封装成map，key为sessionId，value为等于sessionId的多条信息
     * @param sessionIds
     * @return
     */
    List<SeckillSkuRelationEntity> listBySessionIds(@Param("sessionIds") List<Long> sessionIds);
}
